﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_26_2021
{
    class Computer:IUSB
    {
        private string computertype;
        private IUSB usb1;
        private IUSB usb2;

        public string Computertype { get => computertype; set => computertype = value; }
        internal IUSB Usb1 { get => usb1; set => usb1 = value; }
        internal IUSB Usb2 { get => usb2; set => usb2 = value; }

        public Computer() { }
        public Computer(string comoutertype)
        {
            this.Computertype = comoutertype;
        }

        public void Start()
        {
            Console.WriteLine("{0}电脑开机中",this.Computertype);
        }
        public void End()
        {
            Console.WriteLine("{0}电脑关机中", this.Computertype);
        }

        public void Read()
        {
            Console.WriteLine("{0}读取中", this.usb1);
            Console.WriteLine("{0}读取中", this.Usb2);
        }

        public void Write()
        {
            Console.WriteLine("{0}写入中", this.Usb1);
            Console.WriteLine("{0}写入中", this.Usb2);
        }
    }
}
